import {UserModel} from "../../biz/model/UserModel";
import {Http} from "../Http";
import {Token} from "../Token";

export class UserApi {
    static login(username: string, password: string): Promise<UserModel> {
        let btoa1 = window.btoa(username+":"+password);
        let authorization = "Basic " + btoa1;
        return Http.postModel('/manager/rest/users/login', {}, {
            "Authorization": authorization
        });
    }
}
